import request from '@/utils/request'

// 获取验证图片
export function getLoginCaptchaData() {
  return request({
    url: '/captcha/api/math',
    method: 'get'
  })
}

// 登录接口
export function login(data: { username: string; password: string; capycha: string; key: string }) {
  return request({
    url: '/api/common/auth/login',
    method: 'post',
    data
  })
}
